package com.suning.sawp.exception;

/**
 * <b>BLH层处理异常类<b> <br>
 * 
 * @author 88254010
 * 
 */
public class MobileException extends RuntimeException {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 6994530210973700934L;

    /**
     * 异常编码
     */
    private final String errorCode;
    
    /**
     * 构造方法
     * 
     * @param errorCode 错误码
     */
    public MobileException(String errorCode){
        this.errorCode = errorCode;
    }

    public MobileException(String errorCode, String message, Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }
    
    public String getErrorCode() {
        return errorCode;
    }

    public MobileException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }
}